package com.auxgroup.smarthome.controller;

import com.auxgroup.smarthome.basebean.MenuTypeEnum;
import com.auxgroup.smarthome.filter.annotation.PermissionMenu;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/8/2 17:10.
 */
@ApiIgnore
@Controller
@RequestMapping("###")
public class PermmissionGenController {

    //---------------------------- 首页  ----------------------------//
    @RequestMapping("#1")
    @PermissionMenu(id = "umps_dashbord_show", name = "首页", menuType = MenuTypeEnum.MODULE)
    public void dashboardModule(){}

    //-----------------------------数据分析 ------------------------//
    @RequestMapping("#2")
    @PermissionMenu(id = "umps_dataAnalyses", name = "数据分析", menuType = MenuTypeEnum.MODULE)
    public void dataAnalysesModule(){}

    @RequestMapping("#2#1")
    @PermissionMenu(id = "umps_productAnalyse", parentId = "umps_dataAnalyses", name = "产品分析", menuType = MenuTypeEnum.MENU)
    public void productAnalysesMenu(){}

    @RequestMapping("#2#2")
    @PermissionMenu(id = "umps_userAnalyses", parentId = "umps_dataAnalyses", name = "用户分析", menuType = MenuTypeEnum.MENU)
    public void userAnalysesMenu(){}

    //---------------------------  产品管理  ------------------------//
    @RequestMapping("#3")
    @PermissionMenu(id = "umps_productManagement", name = "产品管理", menuType = MenuTypeEnum.MODULE)
    public void productManagementModule() {}

    @RequestMapping("#3#1")
    @PermissionMenu(id = "umps_modelManagement", parentId = "umps_productManagement", name = "型号管理", menuType = MenuTypeEnum.MENU)
    public void modelManagementMenu() {}

    @RequestMapping("#3#2")
    @PermissionMenu(id = "umps_deviceManagement", parentId = "umps_productManagement", name = "设备管理", menuType = MenuTypeEnum.MENU)
    public void deviceManagementMenu() {}

    //---------------------------  APP管理  --------------------//
    // app用户管理
    @RequestMapping("#4")
    @PermissionMenu(id = "umps_appUsermanage", name = "app用户管理", menuType = MenuTypeEnum.MODULE)
    public void appUsermanageModule() {}
    // app首页管理
    @RequestMapping("#5")
    @PermissionMenu(id = "umps_appDashboard", name = "app首页管理", menuType = MenuTypeEnum.MODULE)
    public void appDashboardModule() {}

    //---------------------------  故障管理 --------------------//
    @RequestMapping("#6")
    @PermissionMenu(id = "umps_faultManagementModule", name = "故障管理", menuType = MenuTypeEnum.MODULE)
    public void faultManagementModule() {}

    //---------------------------  待办管理  -------------------//
    @RequestMapping("#7")
    @PermissionMenu(id = "umps_gtasksModule", name = "待办管理", menuType = MenuTypeEnum.MODULE)
    public void gtasksModule() {}

    @RequestMapping("#7#1")
    @PermissionMenu(id = "umps_quickRepairMenu", parentId = "umps_gtasksModule", name = "一键报修", menuType = MenuTypeEnum.MENU)
    public void quickRepairMenu() {}

    //---------------------------- 站内信  ---------------------//
    @RequestMapping("#8")
    @PermissionMenu(id = "umps_inMailModule", name = "站内信", menuType = MenuTypeEnum.MODULE)
    public void inMailModule() {}

    @RequestMapping("#8#1")
    @PermissionMenu(id= "umps_inMailModule_view list", parentId = "umps_inMailModule", name = "站内信列表", menuType = MenuTypeEnum.MENU)
    public void inMailListModuleMenu() {}

    @RequestMapping("#8#2")
    @PermissionMenu(id= "umps_inMailModule_view_notice", parentId = "umps_inMailModule", name = "查看授权成员通知功能页", menuType = MenuTypeEnum.MENU)
    public void inMailViewNoticeModuleMenu() {}

    //---------------------------- 广告推送  ---------------------//
    @RequestMapping("#9")
    @PermissionMenu(id = "umps_advPushModule", name = "广告推送", menuType = MenuTypeEnum.MODULE)
    public void advPushModule() {}

    @RequestMapping("#9#1")
    @PermissionMenu(id = "umps_pushTemplateMenu", parentId = "umps_advPushModule", name = "推送模板", menuType = MenuTypeEnum.MENU)
    public void pushTemplateMenu() {}

    @RequestMapping("#9#2")
    @PermissionMenu(id = "umps_pushRecordMenu", parentId = "umps_advPushModule", name = "推送记录", menuType = MenuTypeEnum.MENU)
    public void pushRecordMenu() {}

    //----------------------------  系统模块 -------------------//
    @RequestMapping("#10")
    @PermissionMenu(id = "umps_system_manage", name = "系统管理", menuType = MenuTypeEnum.MODULE)
    public void systemManageModule(){}

    @RequestMapping("#10#1")
    @PermissionMenu(id = "umps_menu_user_manage", parentId = "umps_system_manage", name = "成员管理", menuType = MenuTypeEnum.MENU)
    public void userManageMenu(){}

    @RequestMapping("#10#2")
    @PermissionMenu(id = "umps_menu_role_manage", parentId = "umps_system_manage", name = "角色管理", menuType = MenuTypeEnum.MENU)
    public void roleManageModule(){}

    @RequestMapping("#10#3")
    @PermissionMenu(id = "umps_menu_menu_manage", parentId = "umps_system_manage", name = "菜单管理", menuType = MenuTypeEnum.MENU)
    public void MenuManageModule(){}

    @RequestMapping("#10#4")
    @PermissionMenu(id = "umps_menu_appversion_manage", parentId = "umps_system_manage", name = "APP版本管理", menuType = MenuTypeEnum.MENU)
    public void appVersionManageModule(){}


}
